﻿#pragma once

#include "afxsock.h"
#include "lineDlg.h"
#include<string>
using namespace std;
class ClineDlg;
class CServerSocket :
	public CSocket
{
public:
	CServerSocket();
	virtual ~CServerSocket();
	ClineDlg *m_pDlg;

	CString cur_db;
	CString m_userName;
	string name;
    string host;
	time_t  startTime;
	
	//重写socket的回调
	void OnAccept(int nErrorCode);
	//重写socket的回调
	void OnClose(int nErrorCode);
	//重写socket的回调
	void OnReceive(int nErrorCode);
	void SendMSG(string );
};

